<?php

namespace App\Http\Requests\Backend\Repay;

use Illuminate\Foundation\Http\FormRequest;

class RepayRequest extends FormRequest
{
    /**
     * Determine if the user is authorized to make this request.
     *
     * @return bool
     */
    public function authorize()
    {
        return true;
    }

    /**
     * Get the validation rules that apply to the request.
     *
     * @return array
     */
    public function rules()
    {

        return [
//            'status' => 'in:1,2',
//            'type' => 'in:1,2,3,4',
//            'page_size' => 'numeric'
            'uid' => 'numeric'
        ];
    }

    public function messages()
    {
        return [
//            'status.in' => '请传递有效的类型',
//            'type.in' => '请传递有效的细分类型',
//            'page_size.numeric' => '请传递正确格式的页面条数'
            'uid.numeric' => '请传递正确格式的用户标识'

        ];
    }
}
